const {User} = require("../../../models/User");

module.exports = async (req, res) => {
    try{
        var {user_id, Art_No} = req.body
        const update1 = await User.updateOne({user_id:user_id},
        {$pull:{"collections":{"Art_No": Art_No}}});
        res.send({errCode:"0",msg:"删除成功"})
    }catch(e){
        res.status(400).send({errCode:"1",msg:"请求错误"})
    }
}